Sha256: f001cc4c6fd20558a1a4b8853fc2add7d36f75b97188f681b5b2eba67f56af3a

Contents?: true

Size: 483 Bytes

Versions: 16

Compression:

Stored size: 483 Bytes

Contents

require "rails_helper"
require 'capybara/rspec'

describe 'form_for helper' do
  class Feedback < LHS::Record
    endpoint '{+datastore}/v2/feedbacks'
  end

  before(:each) do
    assign(:instance, Feedback.new)
  end

  it 'supported by LHS' do
    render template: 'form_for.html'
    expect(rendered).to have_selector('form')
    expect(rendered).to have_selector('input[name="feedback[name]"]')
    expect(rendered).to have_selector('textarea[name="feedback[text]"]')
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
lhs-15.3.1 spec/views/form_for_spec.rb
lhs-15.3.1.pre.fixlhc.1 spec/views/form_for_spec.rb
lhs-15.3.0 spec/views/form_for_spec.rb
lhs-15.2.5 spec/views/form_for_spec.rb
lhs-15.2.4 spec/views/form_for_spec.rb
lhs-15.2.3 spec/views/form_for_spec.rb
lhs-15.2.3.pre.favorites.1 spec/views/form_for_spec.rb
lhs-15.2.2.pre.favorites.1 spec/views/form_for_spec.rb
lhs-15.2.2 spec/views/form_for_spec.rb
lhs-15.2.1 spec/views/form_for_spec.rb
lhs-15.2.0 spec/views/form_for_spec.rb
lhs-15.1.1 spec/views/form_for_spec.rb
lhs-15.1.0 spec/views/form_for_spec.rb
lhs-15.0.2 spec/views/form_for_spec.rb
lhs-15.0.1 spec/views/form_for_spec.rb
lhs-15.0.0 spec/views/form_for_spec.rb