Skip to content

Commit

Permalink
"warning: ambiguous first argument"
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Jun 20, 2012
1 parent 86d82a5 commit c2681a4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions spec/helpers/action_view_extension_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
context 'the default behaviour' do
subject { helper.link_to_previous_page @users, 'Previous', :params => {:controller => 'users', :action => 'index'} }
it { should be_a String }
it { should match /rel="previous"/ }
it { should match(/rel="previous"/) }
end
context 'overriding rel=' do
subject { helper.link_to_previous_page @users, 'Previous', :rel => 'external', :params => {:controller => 'users', :action => 'index'} }
it { should match /rel="external"/ }
it { should match(/rel="external"/) }
end
end
context 'the first page' do
Expand Down Expand Up @@ -222,8 +222,8 @@

subject { helper.rel_next_prev_link_tags @users, :params => {:controller => 'users', :action => 'index'} }
it { should be_a String }
it { should match /rel="next"/ }
it { should_not match /rel="prev"/ }
it { should match(/rel="next"/) }
it { should_not match(/rel="prev"/) }
end
context 'the middle page' do
before do
Expand All @@ -232,8 +232,8 @@

subject { helper.rel_next_prev_link_tags @users, :params => {:controller => 'users', :action => 'index'} }
it { should be_a String }
it { should match /rel="next"/ }
it { should match /rel="prev"/ }
it { should match(/rel="next"/) }
it { should match(/rel="prev"/) }
end
context 'the last page' do
before do
Expand All @@ -242,8 +242,8 @@

subject { helper.rel_next_prev_link_tags @users, :params => {:controller => 'users', :action => 'index'} }
it { should be_a String }
it { should_not match /rel="next"/ }
it { should match /rel="prev"/ }
it { should_not match(/rel="next"/) }
it { should match(/rel="prev"/) }
end
end
end

0 comments on commit c2681a4

Please sign in to comment.