Sha256: 53895ef2c7edf14ae9fcc0492013fb5c0fea769398c68cb0e965621d42278305

Contents?: true

Size: 333 Bytes

Versions: 6

Compression:

Stored size: 333 Bytes

Contents

shared_examples_for "untouched models" do

  describe "has disabled acts_as_api by default" do
    it "indicates that acts_as_api is disabled" do
      @untouched_model.acts_as_api?.should be_false
    end

    it "does not respond to api_accessible" do
      @untouched_model.should_not respond_to :api_accessible
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
acts_as_api-0.3.11 spec/support/model_examples/untouched.rb
acts_as_api-0.3.10 spec/support/model_examples/untouched.rb
acts_as_api-0.3.9 spec/support/model_examples/untouched.rb
acts_as_api-0.3.8 spec/support/model_examples/untouched.rb
acts_as_api-0.3.7 spec/support/model_examples/untouched.rb
acts_as_api-0.3.6 spec/support/model_examples/untouched.rb