Sha256: 4ce2c4c3787f47c54215c7ee939363c251b5992daa79e379bffb057386cbb780

Contents?: true

Size: 421 Bytes

Versions: 77

Compression:

Stored size: 421 Bytes

Contents

require "spec_helper"

describe "Brief Data Wrapper" do
  let(:briefcase) { Brief.testcase }

  it "lets me query the items data" do
    expect(briefcase.data.items.where(status: "inactive").length).to eq(1)
  end

  it "lets me query the items data" do
    expect(briefcase.data.items.where(status: "active").length).to eq(2)
  end

  it "gives me the data" do
    expect(briefcase.data.items.length).to eq(3)
  end
end

Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
brief-1.17.14 spec/lib/brief/data_spec.rb
brief-1.17.13 spec/lib/brief/data_spec.rb
brief-1.17.12 spec/lib/brief/data_spec.rb
brief-1.17.11 spec/lib/brief/data_spec.rb
brief-1.17.10 spec/lib/brief/data_spec.rb
brief-1.17.9 spec/lib/brief/data_spec.rb
brief-1.17.8 spec/lib/brief/data_spec.rb
brief-1.17.7 spec/lib/brief/data_spec.rb
brief-1.17.5 spec/lib/brief/data_spec.rb
brief-1.17.4 spec/lib/brief/data_spec.rb
brief-1.17.3 spec/lib/brief/data_spec.rb
brief-1.17.2 spec/lib/brief/data_spec.rb
brief-1.17.1 spec/lib/brief/data_spec.rb
brief-1.17.0 spec/lib/brief/data_spec.rb
brief-1.16.2 spec/lib/brief/data_spec.rb
brief-1.16.1 spec/lib/brief/data_spec.rb
brief-1.16.0 spec/lib/brief/data_spec.rb
brief-1.15.5 spec/lib/brief/data_spec.rb
brief-1.15.4 spec/lib/brief/data_spec.rb
brief-1.15.3 spec/lib/brief/data_spec.rb