Sha256: ba6991ed6fea92e9cf2ba6a6878d3c74eaa401969ecfdbcdb965f01c2d2d8fc9

Contents?: true

Size: 562 Bytes

Versions: 130

Compression:

Stored size: 562 Bytes

Contents

require 'rails_helper'

describe LHS::Item do
  before(:each) do
    class Record < LHS::Record
      endpoint ':datastore/v2/:campaign_id/feedbacks'
      endpoint ':datastore/v2/feedbacks'
    end
  end

  let(:json) do
    load_json(:feedbacks)
  end

  let(:data) do
    LHS::Data.new(json, nil, Record)
  end

  let(:item) do
    data[0]
  end

  context 'delegates methods to raw' do
    %w(present? blank? empty?).each do |method|
      it "delegates #{method} to raw" do
        expect(item.send(method.to_sym)).not_to be_nil
      end
    end
  end
end

Version data entries

130 entries across 130 versions & 1 rubygems

Version Path
lhs-7.3.0 spec/item/delegate_spec.rb
lhs-7.2.5 spec/item/delegate_spec.rb
lhs-7.2.4 spec/item/delegate_spec.rb
lhs-7.2.3 spec/item/delegate_spec.rb
lhs-7.2.2 spec/item/delegate_spec.rb
lhs-7.2.1 spec/item/delegate_spec.rb
lhs-7.2.0 spec/item/delegate_spec.rb
lhs-7.1.0 spec/item/delegate_spec.rb
lhs-7.0.3 spec/item/delegate_spec.rb
lhs-7.0.2 spec/item/delegate_spec.rb
lhs-7.0.1 spec/item/delegate_spec.rb
lhs-7.0.0 spec/item/delegate_spec.rb
lhs-6.8.2 spec/item/delegate_spec.rb
lhs-6.8.1 spec/item/delegate_spec.rb
lhs-6.8.0 spec/item/delegate_spec.rb
lhs-6.7.2 spec/item/delegate_spec.rb
lhs-6.7.1 spec/item/delegate_spec.rb
lhs-6.7.0 spec/item/delegate_spec.rb
lhs-6.6.2 spec/item/delegate_spec.rb
lhs-6.6.1 spec/item/delegate_spec.rb