Permalink
Browse files

Fix tests for Sinatra

  • Loading branch information...
1 parent e07914f commit c9ace5966221ce2492a29d566cecd449fc6509f9 @yuki24 yuki24 committed Jan 31, 2014
Showing with 4 additions and 4 deletions.
  1. +4 −4 spec/helpers/action_view_extension_spec.rb
@@ -259,7 +259,7 @@
subject { helper.rel_next_prev_link_tags @users, :params => {:controller => 'users', :action => 'index'} }
it { should_not match(/rel="prev"/) }
it { should match(/rel="next"/) }
- it { should match(/href=\"\/users\?page=2\"/) }
+ it { should match(/\?page=2/) }
end
context 'the middle page' do
@@ -269,9 +269,9 @@
subject { helper.rel_next_prev_link_tags @users, :params => {:controller => 'users', :action => 'index'} }
it { should match(/rel="prev"/) }
- it { should match(/href="\/users\?page=1/) }
+ it { should match(/\?page=1/) }
it { should match(/rel="next"/) }
- it { should match(/href="\/users\?page=3/) }
+ it { should match(/\?page=3/) }
end
context 'the last page' do
@@ -281,7 +281,7 @@
subject { helper.rel_next_prev_link_tags @users, :params => {:controller => 'users', :action => 'index'} }
it { should match(/rel="prev"/) }
- it { should match(/href="\/users\?page=2"/) }
+ it { should match(/\?page=2"/) }
it { should_not match(/rel="next"/) }
end
end

0 comments on commit c9ace59

Please sign in to comment.