Sha256: 3dd952cb790d9a870f318a8d53416c57ef0818418ebcca64ef2463e4f4cf34c2

Contents?: true

Size: 481 Bytes

Versions: 2

Compression:

Stored size: 481 Bytes

Contents

require 'spec_helper'

describe "@include direction-context() {...}" do
  before(:all) do
    ParserSupport.parse_file("direction-context")
  end

  context "with no argument" do
    it "uses default direction setting" do
      expect('.default-block').to have_rule('float: left')
    end
  end

  context "whith argument (right-to-left)" do
    it "changes direction setting inside the block" do
      expect('.right-to-left-block').to have_rule('float: right')
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
neat-1.7.0 spec/neat/direction_spec.rb
neat-1.7.0.rc spec/neat/direction_spec.rb