Skip to content

Commit

Permalink
bringing back sinatra with mikyung mocked. sinatra get hell is past
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermesilveira committed Aug 19, 2010
1 parent 75faff8 commit ebecb8c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ gem 'sqlite3-ruby', :require => 'sqlite3'
gem 'restfulie', '1.0.0.beta.1'

group :test, :development do
# gem "sinatra"
gem "sinatra"
gem "rack-conneg"
gem "rspec-rails", ">= 2.0.0.beta.19"
end
Expand Down
3 changes: 3 additions & 0 deletions tests/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ GEM
rspec-rails (2.0.0.beta.19)
rspec (= 2.0.0.beta.19)
webrat (>= 0.7.2.beta.1)
sinatra (1.0)
rack (>= 1.0)
sqlite3-ruby (1.3.1)
thor (0.14.0)
treetop (1.4.8)
Expand All @@ -100,4 +102,5 @@ DEPENDENCIES
rails (= 3.0.0.rc)
restfulie (= 1.0.0.beta.1)
rspec-rails (>= 2.0.0.beta.19)
sinatra
sqlite3-ruby
6 changes: 3 additions & 3 deletions tests/spec/client/mikyung_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

it "should not walk if goal starts completed" do
@goal.should_receive(:completed?).with(@start).and_return(true)
@restfulie = Object.new
@restfulie = mock Restfulie::Client::Mikyung
@restfulie.should_receive(:get).and_return(@start)
@goal.class.should_receive(:get_restfulie).and_return(@restfulie)
@goal.should_receive(:steps).and_return(nil)
Expand All @@ -38,7 +38,7 @@
second = Object.new
@walker.should_receive(:move).with(@goal, @start, @client).and_return(second)
@goal.should_receive(:completed?).with(second).and_return(true)
@restfulie = Object.new
@restfulie = mock Restfulie::Client::Mikyung
@restfulie.should_receive(:get).and_return(@start)
@goal.class.should_receive(:get_restfulie).and_return(@restfulie)
@goal.should_receive(:steps).and_return(nil)
Expand All @@ -52,7 +52,7 @@

it "should start invoking a restfulie get if the entry point is an uri" do
start = "http://www.caelumobjects.com"
restfulie = Object.new
restfulie = mock Restfulie::Client::Mikyung
Restfulie.should_receive(:at).with(start).and_return(restfulie)

resource = Object.new
Expand Down

0 comments on commit ebecb8c

Please sign in to comment.