Sha256: fbf94ec2683bdfe4c68678d9bf688fba4663a18d8d76e7f2c965fec8d9e99b72

Contents?: true

Size: 476 Bytes

Versions: 19

Compression:

Stored size: 476 Bytes

Contents

require "rails_helper"
require 'capybara/rspec'

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

  before 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

19 entries across 19 versions & 1 rubygems

Version Path
lhs-16.1.5 spec/views/form_for_spec.rb
lhs-16.1.4 spec/views/form_for_spec.rb
lhs-16.1.3 spec/views/form_for_spec.rb
lhs-16.1.2 spec/views/form_for_spec.rb
lhs-16.1.1 spec/views/form_for_spec.rb
lhs-16.1.0 spec/views/form_for_spec.rb
lhs-16.0.1 spec/views/form_for_spec.rb
lhs-16.0.0 spec/views/form_for_spec.rb
lhs-15.7.0 spec/views/form_for_spec.rb
lhs-15.6.1 spec/views/form_for_spec.rb
lhs-15.6.0 spec/views/form_for_spec.rb
lhs-15.5.1 spec/views/form_for_spec.rb
lhs-15.5.0 spec/views/form_for_spec.rb
lhs-15.4.1 spec/views/form_for_spec.rb
lhs-15.4.0 spec/views/form_for_spec.rb
lhs-15.4.0.pre.hasone.1 spec/views/form_for_spec.rb
lhs-15.3.3 spec/views/form_for_spec.rb
lhs-15.3.3.pre.fixoptions.1 spec/views/form_for_spec.rb
lhs-15.3.2 spec/views/form_for_spec.rb