spec/lazier_spec.rb in lazier-3.2.5 vs spec/lazier_spec.rb in lazier-3.2.6

- old
+ new

@@ -43,13 +43,11 @@ end end end describe ".find_class" do - module LazierTest - class TestClass - - end + before(:each) do + stub_const("::LazierTest::TestClass", Class.new) end it "should return a valid class" do expect(::Lazier.find_class("String")).to eq(String) expect(::Lazier.find_class("TestClass", "::LazierTest::%CLASS%")).to eq(::LazierTest::TestClass) \ No newline at end of file