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-18.0.0.pre.pre1 spec/views/form_for_spec.rb
lhs-17.0.0 spec/views/form_for_spec.rb
lhs-16.1.6 spec/views/form_for_spec.rb