Sha256: 5a4de49b9341c89b862cd63ee9e6f71dfcaff193224e4011bf6520091c260741

Contents?: true

Size: 1.07 KB

Versions: 32

Compression:

Stored size: 1.07 KB

Contents

# -*- encoding : utf-8 -*-

describe Card::Set::Right::Script do
  let(:js)                    { 'alert( "Hi" );'    }
  let(:compressed_js)         { 'alert("Hi");'      }
  let(:changed_js)            { 'alert( "Hello" );' }
  let(:compressed_changed_js) { 'alert("Hello");'   }
  let(:new_js)                { 'alert( "Hey" );'   }
  let(:compressed_new_js)     { 'alert("Hey");'   }
  
  it_should_behave_like 'pointer machine', that_produces_js do
    let(:machine_card)  { Card.gimme! "test my style+*script", :type => :pointer, :content => ''}
    let(:machine_input_card) { Card.gimme! "test js",  :type => Card::JavaScriptID, :content => js  }
    let(:another_machine_input_card) { Card.gimme! "more js",  :type => Card::JavaScriptID, :content => new_js  }
    let(:expected_input_items) { nil }
    let(:input_type) { :java_script }
    let(:card_content) do
       { in:           js,         out:     compressed_js, 
         changed_in:   changed_js, changed_out: compressed_changed_js,
         new_in:       new_js,     new_out:     compressed_new_js
       }
    end
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
card-1.16.6 mod/04_settings/spec/set/right/script_spec.rb
card-1.16.5 mod/04_settings/spec/set/right/script_spec.rb
card-1.16.4 mod/04_settings/spec/set/right/script_spec.rb
card-1.16.3 mod/04_settings/spec/set/right/script_spec.rb
card-1.16.2 mod/04_settings/spec/set/right/script_spec.rb
card-1.16.1 mod/04_settings/spec/set/right/script_spec.rb
card-1.16.0 mod/04_settings/spec/set/right/script_spec.rb
card-1.15.7 mod/04_settings/spec/set/right/script_spec.rb
card-1.15.6 mod/04_settings/spec/set/right/script_spec.rb
card-1.15.5 mod/04_settings/spec/set/right/script_spec.rb
card-1.15.4 mod/04_settings/spec/set/right/script_spec.rb
card-1.15.3 mod/04_settings/spec/set/right/script_spec.rb
card-1.15.2 mod/04_settings/spec/set/right/script_spec.rb
card-1.15.1 mod/04_settings/spec/set/right/script_spec.rb
card-1.15.0 mod/04_settings/spec/set/right/script_spec.rb
card-1.15.pre2 mod/04_settings/spec/set/right/script_spec.rb
card-1.15.pre mod/04_settings/spec/set/right/script_spec.rb
wagn-1.14.9 mod/04_settings/spec/set/right/script_spec.rb
wagn-1.14.8 mod/04_settings/spec/set/right/script_spec.rb
wagn-1.14.7 mod/04_settings/spec/set/right/script_spec.rb