Skip to content

Commit

Permalink
require awestruct/cli/generate before using class
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Sep 12, 2013
1 parent 4b68494 commit d707418
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/invoker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
end

it "should return false on failure" do
require 'awestruct/cli/generate'
generator = mock
Awestruct::CLI::Generate.should_receive( :new ).and_return( generator )
generator.should_receive( :run ).and_return( false )
Expand Down

0 comments on commit d707418

Please sign in to comment.