Sha256: 828a88df9af0cafc341017303e113fd97bda04b29beccc264bc5c2adf3bd73d4
Contents?: true
Size: 910 Bytes
Versions: 2
Compression:
Stored size: 910 Bytes
Contents
require 'spec_helper' class ExampleForRbxJRubyBug def self.bar(argument) argument end def self.foo(argument) argument end def initialize(*args) args end end describe ExampleForRbxJRubyBug do before do extend Bogus::MockingDSL end context '.bar' do specify 'stubbing class twice in example' do stub(ExampleForRbxJRubyBug).bar('same_argument') stub(ExampleForRbxJRubyBug).bar('same_argument') end end context '.foo' do specify 'stubbing class once in example' do stub(ExampleForRbxJRubyBug).foo('same_argument') end specify 'stubbing class once in another example' do stub(ExampleForRbxJRubyBug).foo('same_argument') end end context '.new' do before { stub(ExampleForRbxJRubyBug).new(any_args) } specify { ExampleForRbxJRubyBug.new(1, 2, 3) } specify { ExampleForRbxJRubyBug.new(1, 2, 3) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bogus-0.1.7 | spec/bogus/bugs/rbx_jruby_stub_on_class_spec.rb |
bogus-0.1.6 | spec/bogus/bugs/rbx_jruby_stub_on_class_spec.rb |