Sha256: 6bba16d6dd22c170f94979c7bccd687ad6b3f01722a4811f2f2c9544116400da

Contents?: true

Size: 1.05 KB

Versions: 14

Compression:

Stored size: 1.05 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

14 entries across 14 versions & 1 rubygems

Version Path
card-1.17.4 mod/04_settings/spec/set/right/script_spec.rb
card-1.17.3 mod/04_settings/spec/set/right/script_spec.rb
card-1.17.2 mod/04_settings/spec/set/right/script_spec.rb
card-1.17.1 mod/04_settings/spec/set/right/script_spec.rb
card-1.17.0 mod/04_settings/spec/set/right/script_spec.rb
card-1.16.15 mod/04_settings/spec/set/right/script_spec.rb
card-1.16.14 mod/04_settings/spec/set/right/script_spec.rb
card-1.16.13 mod/04_settings/spec/set/right/script_spec.rb
card-1.16.12 mod/04_settings/spec/set/right/script_spec.rb
card-1.16.11 mod/04_settings/spec/set/right/script_spec.rb
card-1.16.10 mod/04_settings/spec/set/right/script_spec.rb
card-1.16.9 mod/04_settings/spec/set/right/script_spec.rb
card-1.16.8 mod/04_settings/spec/set/right/script_spec.rb
card-1.16.7 mod/04_settings/spec/set/right/script_spec.rb