Skip to content
Browse files

Fix webrat api changes.

  • Loading branch information...
1 parent 6b70046 commit 8d85a9c8c29d8600b7c22e5f53e7d8e10e7d45e0 @pk committed Apr 8, 2010
Showing with 8 additions and 8 deletions.
  1. +8 −8 spec/merb_sequel_session_spec.rb
View
16 spec/merb_sequel_session_spec.rb
@@ -14,38 +14,38 @@
end
it "should persist values" do
- response = request(url(:set))
+ response = visit(url(:set))
response.should be_successful
response.body.should == 'value'
- response = request(url(:get))
+ response = visit(url(:get))
response.should be_successful
response.body.should == 'value'
end
it "should persist empty data" do
- response = request(url(:set))
+ response = visit(url(:set))
response.should be_successful
response.body.should == 'value'
- response = request(url(:clear))
+ response = visit(url(:clear))
response.should be_successful
- response = request(url(:get))
+ response = visit(url(:get))
response.should be_successful
response.body.should be_empty
end
it "should allow changes" do
- response = request(url(:set))
+ response = visit(url(:set))
response.should be_successful
response.body.should == 'value'
- response = request(url(:change))
+ response = visit(url(:change))
response.should be_successful
response.body.should == 'changed'
- response = request(url(:get))
+ response = visit(url(:get))
response.should be_successful
response.body.should == 'changed'
end

0 comments on commit 8d85a9c

Please sign in to comment.
Something went wrong with that request. Please try again.