Sha256: 75716ba9f962c3cfa75638d4a9f1d083d495af7bc221575ed8d6d1b04536182f

Contents?: true

Size: 1.18 KB

Versions: 21

Compression:

Stored size: 1.18 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_behaves_like "pointer machine", that_produces: :js do
    let(:input_name) { "test js" }
    let(:machine_card) do
      Card.gimme! "test my style+*script", type: :pointer, content: ""
    end
    let(:machine_input_card) do
      Card.gimme! "test js",  type: Card::JavaScriptID, content: js
    end
    let(:another_machine_input_card) do
      Card.gimme! "more js",  type: Card::JavaScriptID, content: new_js
    end
    let(:expected_input_items) { nil }
    let(:input_type) { :java_script }
    let(:card_content) do
      {
        in:          js,
        out:         "//test js\n#{compressed_js}",
        changed_in:  changed_js,
        changed_out: "//test js\n#{compressed_changed_js}",
        new_in:      new_js,
        new_out:     "//more js\n#{compressed_new_js}"
      }
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
card-1.94.1 mod/settings/spec/set/right/script_spec.rb
card-1.94.0 mod/settings/spec/set/right/script_spec.rb
card-1.93.13 mod/settings/spec/set/right/script_spec.rb
card-1.93.12 mod/settings/spec/set/right/script_spec.rb
card-1.93.11 mod/settings/spec/set/right/script_spec.rb
card-1.93.10 mod/settings/spec/set/right/script_spec.rb
card-1.93.9 mod/settings/spec/set/right/script_spec.rb
card-1.93.8 mod/settings/spec/set/right/script_spec.rb
card-1.93.7 mod/settings/spec/set/right/script_spec.rb
card-1.93.6 mod/settings/spec/set/right/script_spec.rb
card-1.93.5 mod/settings/spec/set/right/script_spec.rb
card-1.93.4 mod/settings/spec/set/right/script_spec.rb
card-1.93.3 mod/settings/spec/set/right/script_spec.rb
card-1.93.2 mod/settings/spec/set/right/script_spec.rb
card-1.93.1 mod/settings/spec/set/right/script_spec.rb
card-1.93.0 mod/settings/spec/set/right/script_spec.rb
card-1.92.2 mod/settings/spec/set/right/script_spec.rb
card-1.92.1 mod/settings/spec/set/right/script_spec.rb
card-1.92 mod/settings/spec/set/right/script_spec.rb
card-1.91 mod/settings/spec/set/right/script_spec.rb