Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 50b503f

Browse files
committed
[release/1.0.0] bumped bundler, fixed spec description, added one new
1 parent ff2e5bf commit 50b503f

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

codequest_pipes.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ Gem::Specification.new do |spec|
1414
spec.files = Dir['lib/**/*.rb'] + Dir['spec/**/*.rb']
1515
spec.test_files = spec.files.grep(/^spec/)
1616

17-
spec.add_development_dependency 'bundler', '~> 1.6', '>= 1.6.9'
17+
spec.add_development_dependency 'bundler', '~> 2.0'
1818
spec.add_development_dependency 'rake', '~> 10.3'
1919
end

spec/context_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
it 'lists all fields' do
1919
subject.add(bacon: 'yum', raisins: 'bleh')
2020
expect(subject.inspect)
21-
.to match(/bacon=\"yum\", raisins=\"bleh\", @errors=nil/)
21+
.to match(/raisins=\"bleh\", bacon=\"yum\", @errors=nil/)
2222
end
2323

2424
it 'lists nested contexts' do

spec/pipe_spec.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,14 @@ class NoMethodPipe < Pipes::Pipe; end
181181
end
182182
end # describe 'pipe with a missing `call` method'
183183

184+
describe 'requiring pipe at the beginning' do
185+
let(:pipe) { RequiringChild | Child }
186+
187+
it 'raises MissingContext' do
188+
expect { subject }.to raise_error Pipes::MissingContext
189+
end
190+
end # describe 'pipe with a missing `call` method'
191+
184192
describe 'combined pipes' do
185193
let(:first) { Parent | Child }
186194
let(:second) { Grandchild | GrandGrandchild }

0 commit comments

Comments
 (0)