Sha256: 5d3c27d89ce9aaa2ae455174e76e0a8d576e4e47a8075c53a7712c949d3c7e03

Contents?: true

Size: 290 Bytes

Versions: 2

Compression:

Stored size: 290 Bytes

Contents

require 'rails_helper'

def it_should_have_view(key, value)
  it "should have #{value} for view key '#{key}'" do
    expect(subject.send(key)).to eq value
  end
end

RSpec.describe ActiveAdmin::ViewFactory do

  it_should_have_view :site_title,           ActiveAdmin::Views::SiteTitle

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activeadmin-rails-1.7.1 spec/unit/view_factory_spec.rb
activeadmin-rails-1.7.0 spec/unit/view_factory_spec.rb