Sha256: 8e419a0a0d425898272869c70b1acc1358f074b1d084b2b9d947ad2210a52815

Contents?: true

Size: 599 Bytes

Versions: 8

Compression:

Stored size: 599 Bytes

Contents

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
bogus-0.1.7 spec/bogus/fakes/method_copiers_spec.rb
bogus-0.1.6 spec/bogus/fakes/method_copiers_spec.rb
bogus-0.1.5 spec/bogus/fakes/method_copiers_spec.rb
bogus-0.1.4 spec/bogus/fakes/method_copiers_spec.rb
bogus-0.1.3 spec/bogus/method_copiers_spec.rb
bogus-0.1.2 spec/bogus/method_copiers_spec.rb
bogus-0.1.1 spec/bogus/method_copiers_spec.rb
bogus-0.1.0 spec/bogus/method_copiers_spec.rb