test/test_application.rb in technicalpickles-jeweler-1.0.2 vs test/test_application.rb in technicalpickles-jeweler-1.1.0
- old
+ new
@@ -46,11 +46,11 @@
assert_equal '', @stdout.squeeze.strip
end
end
def build_generator(name = 'zomg', options = {:testing_framework => :shoulda})
- stub.instance_of(Git::Lib).parse_config '~/.gitconfig' do
+ stub(Git).global_config() do
{'user.name' => 'John Doe', 'user.email' => 'john@example.com', 'github.user' => 'johndoe', 'github.token' => 'yyz'}
end
Jeweler::Generator.new(name, options)
end
@@ -103,10 +103,10 @@
end
end
context "when called with repo name" do
setup do
- @options = {:testing_framework => :shoulda}
+ @options = {:testing_framework => :shoulda, :documentation_framework => :rdoc}
@generator = build_generator('zomg', @options)
stub(@generator).run
stub(Jeweler::Generator).new { @generator }
end