test/integration/navigation_test.rb in merit-0.7.1 vs test/integration/navigation_test.rb in merit-0.8.0
- old
+ new
@@ -100,10 +100,10 @@
click_button('Create Comment')
user = User.where(:name => 'a').first
assert_equal 40, user.points, 'Commenting should grant 20 points'
- visit "/comments/1/vote/4"
+ visit "/comments/#{Comment.last.id}/vote/4"
user = User.first
assert_equal 45, user.points, 'Voting comments should grant 5 points'
end
test 'user workflow should grant levels at some times' do