Sha256: 8d32120fadc7b15f4922b7a95d06ff65a42eccd51e5fce1db66bcb1e10f3854e
Contents?: true
Size: 472 Bytes
Versions: 1
Compression:
Stored size: 472 Bytes
Contents
require 'spec_helper' describe 'Rails 3 form matcher' do with_form_helper :rails_form context "Rails 3 form example 1 view file" do form_file = File.join(erb_fixtures_dir, 'railsform-ex1.erb') it "content should match form expectations" do form_file.should have_content do |content| content.erb_code.should have_form_for '@person' do |form| form.should have_label :name end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
code-spec-0.1.3 | spec/code-spec/erb/matchers/rails_view/have_form_spec.rb |