Sha256: c6ea846f2256a6e91db713e9711fdc25e999ae804a0362e2b8e60f428c961309

Contents?: true

Size: 560 Bytes

Versions: 10

Compression:

Stored size: 560 Bytes

Contents

require "spec_helper"

describe "Helpers" do
  set_controller Rad::Face::Demo::Commons
  
  def body
    wcall(:forms)
    response.body
  end
  
  it "form_tag should correctly render form (from error)" do
    body.to_xhtml('#basic_form_tag').should_be_fuzzy_equal_to(
      id: 'basic_form_tag', action: '/some_action', method: 'post'
    )
  end
  
  it "form_for should correctly render form (from error)" do
    body.to_xhtml('#basic_form_for').should_be_fuzzy_equal_to(
      id: 'basic_form_for', action: '/some_action', method: 'post'
    )
  end  
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rad_common_interface-0.0.10 spec/helpers_spec.rb
rad_common_interface-0.0.9 spec/helpers_spec.rb
rad_common_interface-0.0.8 spec/helpers_spec.rb
rad_common_interface-0.0.7 spec/helpers_spec.rb
rad_common_interface-0.0.6 spec/helpers_spec.rb
rad_common_interface-0.0.5 spec/helpers_spec.rb
rad_common_interface-0.0.4 spec/helpers_spec.rb
rad_common_interface-0.0.3 spec/helpers_spec.rb
rad_common_interface-0.0.2 spec/helpers_spec.rb
rad_common_interface-0.0.1 spec/helpers_spec.rb