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