1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
require 'spec_helper'
describe "Method Copiers" do
shared_examples_for "method copier" do
let(:klass) { Class.new }
subject { isolate(described_class) }
it { should respond_to(:all) }
it { should respond_to(:get) }
it { should respond_to(:remove) }
it { should respond_to(:define) }
end
describe Bogus::InstanceMethods do
it_behaves_like "method copier"
end
describe Bogus::ClassMethods do
it_behaves_like "method copier"
end
describe Bogus::ActiveRecordAccessors do
let(:instance_methods) { nil }
it_behaves_like "method copier"
end
end
|