Sha256: 2c919437b0a9afa6eb341cca524ecea8bb5e819e4a9d520176136118190932f0

Contents?: true

Size: 474 Bytes

Versions: 12

Compression:

Stored size: 474 Bytes

Contents

require 'spec_helper'

describe Outliers::Resource do
  let(:provider) { mock 'provider' }
  subject { Outliers::Resource.new provider }

  context "#method_missing" do
    it "should send missing methods to the source object" do
      provider.stub :test_method => true
      expect(subject.send 'test_method').to be_true
    end
  end

  context "#self.key" do
    it "should valid key returns name" do
      expect(Outliers::Resource.key).to eq('name')
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
outliers-0.5.0 spec/resource_spec.rb
outliers-0.5.0.beta3 spec/resource_spec.rb
outliers-0.5.0.beta2 spec/resource_spec.rb
outliers-0.5.0.beta1 spec/resource_spec.rb
outliers-0.3.3 spec/resource_spec.rb
outliers-0.3.2 spec/resource_spec.rb
outliers-0.3.1 spec/resource_spec.rb
outliers-0.3.0 spec/resource_spec.rb
outliers-0.2.0 spec/resource_spec.rb
outliers-0.1.1 spec/resource_spec.rb
outliers-0.1.0 spec/resource_spec.rb
outliers-0.0.1 spec/resource_spec.rb