Sha256: 06531509a1be292eb21333030eff0a53f183d89032d1ac6ef9e58ca14379fc93

Contents?: true

Size: 507 Bytes

Versions: 43

Compression:

Stored size: 507 Bytes

Contents

# frozen_string_literal: true

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

43 entries across 43 versions & 1 rubygems

Version Path
lhs-19.7.0 spec/views/form_for_spec.rb
lhs-19.6.0 spec/views/form_for_spec.rb
lhs-19.5.0 spec/views/form_for_spec.rb
lhs-19.5.0.pre.wherehref.1 spec/views/form_for_spec.rb
lhs-19.4.1 spec/views/form_for_spec.rb
lhs-19.4.0 spec/views/form_for_spec.rb
lhs-19.3.1 spec/views/form_for_spec.rb
lhs-19.3.0 spec/views/form_for_spec.rb
lhs-19.2.0 spec/views/form_for_spec.rb
lhs-19.1.0 spec/views/form_for_spec.rb
lhs-19.0.2 spec/views/form_for_spec.rb
lhs-19.0.1 spec/views/form_for_spec.rb
lhs-19.0.0 spec/views/form_for_spec.rb
lhs-19.0.0.pre.endpoint.1 spec/views/form_for_spec.rb
lhs-18.0.3 spec/views/form_for_spec.rb
lhs-18.0.2 spec/views/form_for_spec.rb
lhs-18.0.1 spec/views/form_for_spec.rb
lhs-18.0.0 spec/views/form_for_spec.rb
lhs-17.0.1 spec/views/form_for_spec.rb
lhs-17.0.1.pre1 spec/views/form_for_spec.rb