Sha256: 218d8bcb06b7ef9e827208c16f4a8af210096d736816f6bf1808919b9bccc40a

Contents?: true

Size: 660 Bytes

Versions: 10

Compression:

Stored size: 660 Bytes

Contents

require 'spec_helper'

describe "languages/new" do
  before(:each) do
    assign(:language, stub_model(Language,
      :name => "MyString",
      :code => "MyString",
      :default => false
    ).as_new_record)
  end

  it "renders new language form" do
    render

    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "form", :action => languages_path, :method => "post" do
      assert_select "input#language_name", :name => "language[name]"
      assert_select "input#language_code", :name => "language[code]"
      assert_select "input#language_default", :name => "language[default]"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
kuztuscms-0.0.10 spec/views/kuztuscms/languages/new.html.erb_spec.rb
kuztuscms-0.0.9 spec/views/kuztuscms/languages/new.html.erb_spec.rb
kuztuscms-0.0.8 spec/views/kuztuscms/languages/new.html.erb_spec.rb
kuztuscms-0.0.7 spec/views/kuztuscms/languages/new.html.erb_spec.rb
kuztuscms-0.0.6 spec/views/kuztuscms/languages/new.html.erb_spec.rb
kuztuscms-0.0.5 spec/views/kuztuscms/languages/new.html.erb_spec.rb
kuztuscms-0.0.4 spec/views/kuztuscms/languages/new.html.erb_spec.rb
kuztuscms-0.0.3 spec/views/kuztuscms/languages/new.html.erb_spec.rb
kuztuscms-0.0.2 spec/views/kuztuscms/languages/new.html.erb_spec.rb
kuztuscms-0.0.1 spec/views/kuztuscms/languages/new.html.erb_spec.rb