spec/gondler/package_spec.rb in gondler-0.0.3 vs spec/gondler/package_spec.rb in gondler-0.1.0

- old
+ new

@@ -8,17 +8,17 @@ describe '#os' do let(:expected) { %w(linux darwin) } subject { package.os } context 'with ["linux", "darwin"]' do - let(:options) { { os: %w(linux darwin) } } + let(:options) { { :os => %w(linux darwin) } } it { should == expected } end context 'with "linux darwin"' do - let(:options) { { os: 'linux darwin' } } + let(:options) { { :os => 'linux darwin' } } it { should == expected } end end @@ -31,31 +31,31 @@ context 'when os option is nil' do it { should be_true } end context 'when os option is darwin' do - let(:options) { { os: 'darwin' } } + let(:options) { { :os => 'darwin' } } it { should be_true } end context 'when os option is linux' do - let(:options) { { os: 'linux' } } + let(:options) { { :os => 'linux' } } it { should be_false } end context 'when os option is linux and darwin' do - let(:options) { { os: 'linux darwin' } } + let(:options) { { :os => 'linux darwin' } } it { should be_true } end context 'when development without' do before { Gondler.withouts = %w(development) } after { Gondler.withouts = [] } - let(:options) { { group: 'development' } } + let(:options) { { :group => 'development' } } it { should be_false } end end end