Sha256: f383b031a6d416b9e776d335a88c4f1f36cf0a1015f9a89c2aefadfdf33fb765

Contents?: true

Size: 488 Bytes

Versions: 11

Compression:

Stored size: 488 Bytes

Contents

require 'rails_helper'

describe LHS::Data do
  context 'equality' do
    before(:each) do
      class Record < LHS::Record
        endpoint 'http://local.ch/records'
      end
    end

    let(:raw) do
      { name: 'Steve' }
    end

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

    it 'provides inspect method that is focused on the raw data' do
      expect(data.inspect).to eq raw
      expect(data.inspect_without_focus).to include 'LHS::Data'
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
lhs-6.1.0 spec/data/inspect_spec.rb
lhs-6.0.0 spec/data/inspect_spec.rb
lhs-5.7.1 spec/data/inspect_spec.rb
lhs-5.7.0 spec/data/inspect_spec.rb
lhs-5.6.6 spec/data/inspect_spec.rb
lhs-5.6.5 spec/data/inspect_spec.rb
lhs-5.6.4 spec/data/inspect_spec.rb
lhs-5.6.3 spec/data/inspect_spec.rb
lhs-5.6.2 spec/data/inspect_spec.rb
lhs-5.6.1 spec/data/inspect_spec.rb
lhs-5.6.0 spec/data/inspect_spec.rb