spec/provider/rubygems_spec.rb in dpl-rubygems-1.9.0 vs spec/provider/rubygems_spec.rb in dpl-rubygems-1.9.1.travis.2589.5

- old
+ new

@@ -48,40 +48,33 @@ provider.push_app end example "with options[:app]" do provider.options.update(:app => 'example') - expect(provider.context).to receive(:shell).with("for f in example.gemspec; do gem build $f; done") + expect(provider.context).to receive(:shell).with("gem build example.gemspec") expect(Dir).to receive(:glob).with('example-*.gem').and_yield('File') expect(::Gems).to receive(:push).with('Test file').and_return('Yes!') end example "with options[:gem]" do provider.options.update(:gem => 'example-gem') - expect(provider.context).to receive(:shell).with("for f in example-gem.gemspec; do gem build $f; done") + expect(provider.context).to receive(:shell).with("gem build example-gem.gemspec") expect(Dir).to receive(:glob).with('example-gem-*.gem').and_yield('File') expect(::Gems).to receive(:push).with('Test file').and_return('Yes!') end example "with options[:gemspec]" do provider.options.update(:gemspec => 'blah.gemspec') - expect(provider.context).to receive(:shell).with("for f in blah.gemspec; do gem build $f; done") + expect(provider.context).to receive(:shell).with("gem build blah.gemspec") expect(Dir).to receive(:glob).with('blah-*.gem').and_yield('File') expect(::Gems).to receive(:push).with('Test file').and_return('Yes!') end example "with options[:host]" do provider.options.update(:host => 'http://example.com') - expect(provider.context).to receive(:shell).with("for f in example.gemspec; do gem build $f; done") + expect(provider.context).to receive(:shell).with("gem build example.gemspec") expect(Dir).to receive(:glob).with('example-*.gem').and_yield('File') expect(::Gems).to receive(:push).with('Test file', host='http://example.com').and_return('Yes!') - end - - example "with options[:gemspec_glob]" do - provider.options.update(:gemspec_glob => 'example-*.gemspec') - expect(provider.context).to receive(:shell).with("for f in example-*.gemspec; do gem build $f; done") - expect(Dir).to receive(:glob).with('example-*.gem').and_yield('File') - expect(::Gems).to receive(:push).with('Test file').and_return('Yes!') end end describe "#setup_gem" do example "with options[:gem] and options[:app] set" do