Skip to content

Latest commit

 

History

History
97 lines (66 loc) · 1.79 KB

README.md

File metadata and controls

97 lines (66 loc) · 1.79 KB

mobprogramminglax

Original problem

exercism/exercism#2981

Test PR

--

The files

app/routes/teams.rb
team_test.rb
team_stream.rb
app/routes/teams.rb


git rebase

https://help.github.com/articles/about-git-rebase/


To run our tests

bundle exec rake test TEST=test/acceptance/team_test.rb

===

To run exercism locally

foreman s -p 4567

For Jen to run the server locally:
$ rackup -s puma -p 3000 -o 0.0.0.0

Go to the browser at: http://0.0.0.0:3000/

===

Create the page to view it

  • Add pry
    with_login(user) do
      visit("/teams/some-team/streams?per_page=2")
      require 'pry'; binding.pry
      click_link("2")
    end
  • Run the tests with pry bundle exec rake test TEST=test/acceptance/team_test.rb

  • Run this in the pry repl:

target = open('page.html', 'w')

target.write(page.html)

target.close

  • BE SURE TO EXIT PRY! $ exit

To update the branch to match with upstream

git checkout master
git pull upstream master
git checkout branch-name
git rebase master

git checkout master
git branch -m team-pagination team-pagination-mess
git checkout -b team-pagination
git cherry-pick eb6c6fe..faa36ad
git push origin team-pagination --force

Using Pry

require 'pry'; binding.pry