Permalink
Browse files

s/should reject/rejects, s/should accept/accepts in spec suite.

  • Loading branch information...
1 parent 1032e9d commit 030da4a84ecafd22885da6d217440294856a77eb @croaky croaky committed Oct 15, 2011
Showing with 10 additions and 11 deletions.
  1. +10 −11 spec/shoulda/action_controller/render_template_matcher_spec.rb
@@ -8,19 +8,19 @@
@controller = build_response(:action => 'show') { render }
end
- it "should accept rendering that template" do
+ it "accepts rendering that template" do
@controller.should render_template(:show)
end
- it "should reject rendering a different template" do
+ it "rejects rendering a different template" do
@controller.should_not render_template(:index)
end
- it "should accept rendering that template in the given context" do
+ it "accepts rendering that template in the given context" do
@controller.should render_template(:show).in_context(self)
end
- it "should reject rendering a different template in the given context" do
+ it "rejects rendering a different template in the given context" do
@controller.should_not render_template(:index).in_context(self)
end
end
@@ -30,19 +30,19 @@
@controller = build_response(:partial => '_customer') { render :partial => 'customer' }
end
- it "should accept rendering that partial" do
+ it "accepts rendering that partial" do
@controller.should render_template(:partial => '_customer')
end
- it "should reject rendering a different template" do
+ it "rejects rendering a different template" do
@controller.should_not render_template(:partial => '_client')
end
- it "should accept rendering that template in the given context" do
+ it "accepts rendering that template in the given context" do
@controller.should render_template(:partial => '_customer').in_context(self)
end
- it "should reject rendering a different template in the given context" do
+ it "rejects rendering a different template in the given context" do
@controller.should_not render_template(:partial => '_client').in_context(self)
end
end
@@ -62,7 +62,7 @@
@controller = build_response(:partial => '_customer') { render :partial => 'customer', :collection => [1,2] }
end
- it "should accept rendering that partial twice" do
+ it "accepts rendering that partial twice" do
@controller.should render_template(:partial => '_customer', :count => 2)
end
end
@@ -72,9 +72,8 @@
@controller = build_response { render :nothing => true }
end
- it "should reject rendering a template" do
+ it "rejects rendering a template" do
@controller.should_not render_template(:show)
end
end
-
end

0 comments on commit 030da4a

Please sign in to comment.