Sha256: 9c9133f17286d1fc3e063b95aa5224770cda7109ee2facfc9e8e43da9912ace2

Contents?: true

Size: 621 Bytes

Versions: 3

Compression:

Stored size: 621 Bytes

Contents

require "rails_helper"

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

  # # request.params returns nil, ransack requirs this
  # 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 show edit destroy],
  #     attributes: %i[title toggler],
  #     collection: Tree.all,
  #     model: Tree,
  #     namespace: nil
  #   )
  # end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lasha-0.8.1 spec/gem/lasha_spec.rb
lasha-0.7.0 spec/gem/lasha_spec.rb
lasha-0.6.1 spec/gem/lasha_spec.rb