1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
# frozen_string_literal: true
require "spec_helper"
describe FakedProject do
it "should have added a class method to FakedProject" do
expect(FakedProject.a_class_method).to eq("this is a mixed-in class method")
end
it "should have added a mixed-in instance method to FakedProject" do
expect(subject.an_instance_method).to eq("this is a mixed-in instance method")
end
it "should have added a dynamically-defined instance method to FakedProject" do
expect(subject.dynamic).to eq("A dynamically defined instance method")
end
end
|