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