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