spec/bogus/copies_classes_spec.rb in bogus-0.0.2 vs spec/bogus/copies_classes_spec.rb in bogus-0.0.3.rc.1
- old
+ new
@@ -1,6 +1,6 @@
-require_relative '../spec_helper'
+require 'spec_helper'
describe Bogus::CopiesClasses do
module SampleMethods
def foo
end
@@ -55,11 +55,12 @@
it "makes the methods chainable" do
subject.foo.bar('hello').baz('hello', 'world', 'foo').bam.baa('foo')
end
end
- let(:method_stringifier) { Bogus::MethodStringifier.new }
- let(:copies_classes) { Bogus::CopiesClasses.new(method_stringifier) }
+ let(:method_stringifier) { isolate(Bogus::MethodStringifier) }
+ let(:makes_substitute_methods) { isolate(Bogus::MakesSubstituteMethods) }
+ let(:copies_classes) { isolate(Bogus::CopiesClasses) }
let(:fake_class) { copies_classes.copy(klass) }
let(:fake) { fake_class.new }
class FooWithInstanceMethods
include SampleMethods