Sha256: 518bf8256a2fa7a9d025e69cef172a6378d664a9f521a95dad16f0c169c53d9e
Contents?: true
Size: 751 Bytes
Versions: 3
Compression:
Stored size: 751 Bytes
Contents
require 'spec_helper' feature Netzke::TestingController do it 'renders Netzke components specified in the URL' do visit '/netzke/components/Foo' page.should have_selector "#foo-netzke" end it 'includes JS helpers' do visit '/netzke/components/Foo?spec=true' page.html.should include 'assets/netzke/testing/helpers/queries' end it 'does not include JS helpers when no spec is specified' do visit '/netzke/components/Foo' page.html.should_not include 'assets/netzke/testing/helpers/queries' end it 'does not include JS helpers when no-helper param is set to true' do visit '/netzke/components/Foo?no-helpers=true&spec=true' page.html.should_not include 'assets/netzke/testing/helpers/queries' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
netzke-testing-1.0.0.0.pre | spec/testing_controller_spec.rb |
netzke-testing-0.12.3 | spec/testing_controller_spec.rb |
netzke-testing-0.12.2 | spec/testing_controller_spec.rb |