Sha256: 9c0d6ae4f35da430600a1741aa474da4724396c47063cfccc2ca1a041e8638bf

Contents?: true

Size: 476 Bytes

Versions: 4

Compression:

Stored size: 476 Bytes

Contents

require 'spec_helper'

describe 'Simpleform form matcher' do    
  with_form_helper :simpleform
  
  context "Simpleform example 1 view file" do
    form_file = File.join(erb_fixtures_dir, 'simpleform-ex1.erb')

    it "content should match form expectations" do            
      form_file.should have_content do |content|
        content.erb_code.should have_simple_form_for '@user' do |form|
          form.should have_username
        end
      end
    end
  end
end





Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
forms-spec-0.1.2 spec/forms-spec/erb/matchers/simpleform/have_simpleform_spec.rb
forms-spec-0.1.1 spec/forms-spec/erb/matchers/simpleform/have_simpleform_spec.rb
forms-spec-0.1.0 spec/forms-spec/erb/matchers/simpleform/have_simpleform_spec.rb
code-spec-0.1.3 spec/code-spec/erb/matchers/simpleform/have_simpleform_spec.rb