Sha256: 280317db927d05005fa9e5c8d8e025c4dff503f60a137195599fa7e82a67f5ae

Contents?: true

Size: 355 Bytes

Versions: 1

Compression:

Stored size: 355 Bytes

Contents

require 'spec_helper'
 describe Administrate::Field::Hidden do
  subject { Administrate::Field::Hidden.new(:field, data, :show) }
   describe '#to_partial_path' do
    let(:data) { true }
     it 'returns a partial based on the page being rendered' do
      path = subject.to_partial_path
      expect(path).to eq('/fields/hidden/show')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
administrate-field-hidden-0.1.0 spec/lib/administrate/field/hidden_spec.rb