Sha256: f087512e3822476deaa1ec4bb5b2d1fa3ef46ff17f0e6c49ffbbe25b8888d518

Contents?: true

Size: 530 Bytes

Versions: 6

Compression:

Stored size: 530 Bytes

Contents

require "rails_helper"

RSpec.describe Lasha do
  # pending "add some examples to (or delete) #{__FILE__}"

  it "index_data works" do
    expect(
      Lasha.index_data(
        controller: TreesController.new,
        namespace: nil,
        model: nil,
        actions: nil,
        collection: Tree.all,
        attributes: %i[title toggler]
      )
    ).to eq(
      actions: %i[new destroy edit show],
      attributes: %i[title toggler],
      collection: Tree.all,
      model: Tree,
      namespace: nil
    )
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lasha-0.6.0 spec/gem/lasha_spec.rb
lasha-0.5.0 spec/gem/lasha_spec.rb
lasha-0.4.2 spec/gem/lasha_spec.rb
lasha-0.4.1 spec/gem/lasha_spec.rb
lasha-0.4.0 spec/gem/lasha_spec.rb
lasha-0.3.4 spec/gem/lasha_spec.rb