Sha256: ec9c2ca1d81054459750d7942168faf3f4ba5aea39aed29ed1f11e03c40b4892

Contents?: true

Size: 675 Bytes

Versions: 10

Compression:

Stored size: 675 Bytes

Contents

require 'spec_helper'

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

  it "renders the edit 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(@language), :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/edit.html.erb_spec.rb
kuztuscms-0.0.9 spec/views/kuztuscms/languages/edit.html.erb_spec.rb
kuztuscms-0.0.8 spec/views/kuztuscms/languages/edit.html.erb_spec.rb
kuztuscms-0.0.7 spec/views/kuztuscms/languages/edit.html.erb_spec.rb
kuztuscms-0.0.6 spec/views/kuztuscms/languages/edit.html.erb_spec.rb
kuztuscms-0.0.5 spec/views/kuztuscms/languages/edit.html.erb_spec.rb
kuztuscms-0.0.4 spec/views/kuztuscms/languages/edit.html.erb_spec.rb
kuztuscms-0.0.3 spec/views/kuztuscms/languages/edit.html.erb_spec.rb
kuztuscms-0.0.2 spec/views/kuztuscms/languages/edit.html.erb_spec.rb
kuztuscms-0.0.1 spec/views/kuztuscms/languages/edit.html.erb_spec.rb