Sha256: 9cb6548dcae24d2c111285a1176fb3b19b15b4bdb221e3c66b74c1ea627a58ad

Contents?: true

Size: 481 Bytes

Versions: 7

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

7 entries across 7 versions & 1 rubygems

Version Path
neat-1.9.1 spec/neat/direction_spec.rb
neat-1.9.0 spec/neat/direction_spec.rb
neat-1.8.0 spec/neat/direction_spec.rb
neat-1.7.4 spec/neat/direction_spec.rb
neat-1.7.3 spec/neat/direction_spec.rb
neat-1.7.2 spec/neat/direction_spec.rb
neat-1.7.1 spec/neat/direction_spec.rb