Sha256: e111b122e5808b74c91b63b0f6eac1f12046acbfee8ce39a7b6e2390361d51e6

Contents?: true

Size: 522 Bytes

Versions: 6

Compression:

Stored size: 522 Bytes

Contents

require 'helper'

describe Yotpo::Feature do
  describe '#get_features' do
    before(:all) do
      get_features_params = {
          utoken: @utoken
      }
      VCR.use_cassette('get_features') do
        @response = Yotpo.get_features(get_features_params)
      end
    end

    subject { @response.body.features[0]  }
    it { should be_a ::Hashie::Mash }
    it { should respond_to :id }
    it { should respond_to :name }
    it { should respond_to :description }
    it { should respond_to :owner_type }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
yotpo-1.0.6 spec/api/feature_spec.rb
yotpo-1.0.5 spec/api/feature_spec.rb
yotpo-1.0.4 spec/api/feature_spec.rb
yotpo-1.0.3 spec/api/feature_spec.rb
yotpo-1.0.1 spec/api/feature_spec.rb
yotpo-1.0.0 spec/api/feature_spec.rb