Sha256: 737be9004fabdfa7eeee00f0cf43b2500eb179f24df4b7467a349d8f3a4b248c

Contents?: true

Size: 431 Bytes

Versions: 13

Compression:

Stored size: 431 Bytes

Contents

require 'spec_helper'

describe "RailsAdmin Namespaced Model Create" do

  subject { page }

  it "creates object with correct attributes" do
    visit new_path(:model_name => "cms~basic_page")

    fill_in "cms_basic_page[title]", :with => "Hello"
    fill_in "cms_basic_page[content]", :with => "World"
    expect {
      click_button "Save" # first(:button, "Save").click
    }.to change(Cms::BasicPage, :count).by(1)
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
rails_admin-0.6.0 spec/integration/basic/create/rails_admin_namespaced_model_create_spec.rb
rails_admin-0.5.0 spec/integration/basic/create/rails_admin_namespaced_model_create_spec.rb
rails_admin-0.4.9 spec/integration/basic/create/rails_admin_namespaced_model_create_spec.rb
rails_admin-0.4.8 spec/integration/basic/create/rails_admin_namespaced_model_create_spec.rb
rails_admin-0.4.7 spec/integration/basic/create/rails_admin_namespaced_model_create_spec.rb
rails_admin-0.4.6 spec/integration/basic/create/rails_admin_namespaced_model_create_spec.rb
rails_admin-0.4.5 spec/integration/basic/create/rails_admin_namespaced_model_create_spec.rb
rails_admin-0.4.4 spec/integration/basic/create/rails_admin_namespaced_model_create_spec.rb
rails_admin-lbgraham-0.4.2 spec/integration/basic/create/rails_admin_namespaced_model_create_spec.rb
rails_admin-0.4.3 spec/integration/basic/create/rails_admin_namespaced_model_create_spec.rb
rails_admin-0.4.2 spec/integration/basic/create/rails_admin_namespaced_model_create_spec.rb
rails_admin-0.4.1 spec/integration/basic/create/rails_admin_namespaced_model_create_spec.rb
rails_admin-0.4.0 spec/integration/basic/create/rails_admin_namespaced_model_create_spec.rb