Sha256: 1323428afd2afa37ddc9fe5ff7de6207bc33693eccd198b293e12076797cc2b9

Contents?: true

Size: 1.36 KB

Versions: 2

Compression:

Stored size: 1.36 KB

Contents

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

require File.expand_path('../../../lib/machine_spec.rb', __FILE__)

describe Card::Set::Right::Style do
#  describe "#delet"
#  it "should delete tempfile"
  #let!(:skin_card)              { Card.gimme! "test skin", :type => :skin, :content => '[[test css]]'}
  let(:css)                    { "#box { display: block }"  }
  let(:compressed_css)         { "#box{display:block}\n"    }
  let(:changed_css)            { "#box { display: inline }" }
  let(:compressed_changed_css) { "#box{display:inline}\n"   }
  let(:new_css)                { "#box{ display: none}\n"   }
  let(:compressed_new_css)     { "#box{display:none}\n"   }  
  
  it_should_behave_like 'pointer machine', that_produces_css do
    let(:machine_card)  { Card.gimme! "test my style+*style", :type => :pointer, :content => ''}
    let(:machine_input_card) { Card.gimme! "test css",  :type => :css, :content => css  }
    let(:another_machine_input_card) { Card.gimme! "more css",  :type => :css, :content => new_css  }
    let(:expected_input_items) { nil } #[Card.fetch("test skin"), machine_input_card] }
    let(:input_type) { :css }
    let(:card_content) do
       { in:           css,         out:     compressed_css, 
         changed_in:   changed_css, changed_out: compressed_changed_css,
         new_in:       new_css,     new_out:     compressed_new_css
       }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wagn-1.13.0 spec/mod/standard/set/right/style_spec.rb
wagn-1.13.0.pre2 spec/mods/standard/sets/right/style_spec.rb