spec/lib/pumper/specification_spec.rb in pumper-1.0.1 vs spec/lib/pumper/specification_spec.rb in pumper-1.2.0

- old
+ new

@@ -1,8 +1,11 @@ describe Pumper::Specification do - let(:gemspec) { File.expand_path('../../../fixtures/simple_gem.gemspec', __FILE__) } + subject { described_class.new } - subject { described_class.new(gemspec) } + before do + currrent_path = Dir.pwd + allow(Dir).to receive_messages(pwd: "#{ currrent_path }/spec/fixtures") + end its(:name) { is_expected.to eq('simple_gem') } its(:version) { is_expected.to eq('1.2.3') } its(:for_gemfile) { is_expected.to eq("gem 'simple_gem', '~> 1.2.3'") } its(:gem_file_name) { is_expected.to eq('simple_gem-1.2.3.gem') } \ No newline at end of file