Sha256: e95a2b28e975d0fa0a63d4b7860640955553533fd49416dadf01cccefcf95707

Contents?: true

Size: 469 Bytes

Versions: 7

Compression:

Stored size: 469 Bytes

Contents

require 'spec_helper'


describe '_x', :type => :feature, :js => true  do

  before do
    visit basic_action_foo_path
  end


  it 'is visible on filters and callback' do
    final_x = page.evaluate_script 'window.xVisibilityFinal'
    final_x.should eq ['Before Foo', 'Around Foo', 'Foo', 'After Foo', 'Around Foo']
  end


  it 'is empty after filter and callback executions' do
    x = page.evaluate_script 'Paloma.variableContainer'
    x.should be_empty
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
paloma-2.0.6 spec/test_app/spec/javascripts/variable_container_spec.rb
paloma-2.0.5 spec/test_app/spec/javascripts/variable_container_spec.rb
paloma-2.0.4 spec/test_app/spec/javascripts/variable_container_spec.rb
paloma-2.0.3 spec/test_app/spec/javascripts/variable_container_spec.rb
paloma-2.0.2 spec/test_app/spec/javascripts/variable_container_spec.rb
paloma-2.0.1 spec/test_app/spec/javascripts/variable_container_spec.rb
paloma-2.0.0 spec/test_app/spec/javascripts/variable_container_spec.rb