Sha256: f9b978ea96cc39ef6102bd3bc4b203559b540a23621b66542d1b07931a7967fd
Contents?: true
Size: 643 Bytes
Versions: 1
Compression:
Stored size: 643 Bytes
Contents
require File.expand_path("../../spec_helper", __FILE__) describe "JqueryDynamicFields" do describe "adding fields" do it "adds a field", js: true do visit new_tasklist_path click_link "add a task" page.should have_selector "label", text: "Label" end end describe "removing fields" do it "removes a field", js: true do tasklist = Tasklist.create!(title: "Foo") Task.create!(label: "bar", tasklist_id: tasklist.id) visit edit_tasklist_path(tasklist) page.should have_selector "input", value: "bar" click_link "remove" page.should_not have_content "bar" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jquery_dynamic_fields-0.0.4 | spec/requests/jquery_dynamic_fields_spec.rb |