Sha256: 4130dba9d6e20d8a97c43c8f6dd09a3302f81dd9dd7e050862de748db58a74fd

Contents?: true

Size: 487 Bytes

Versions: 6

Compression:

Stored size: 487 Bytes

Contents

require "spec_helper"

describe "neat-opposite-direction" do
  before(:all) do
    ParserSupport.parse_file("functions/neat-opposite-direction")
  end

  context "called with ltr" do
    it "returns right" do
      rule = "content: right"

      expect(".neat-opposite-direction-ltr").to have_rule(rule)
    end
  end

  context "called with rtl" do
    it "returns left" do
      rule = "content: left"

      expect(".neat-opposite-direction-rtl").to have_rule(rule)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
neat-4.0.0 spec/neat/functions/neat_opposite_direction_spec.rb
neat-3.0.1 spec/neat/functions/neat_opposite_direction_spec.rb
neat-3.0.0 spec/neat/functions/neat_opposite_direction_spec.rb
neat-2.1.0 spec/neat/functions/neat_opposite_direction_spec.rb
neat-2.0.0 spec/neat/functions/neat_opposite_direction_spec.rb
neat-2.0.0.beta.2 spec/neat/functions/neat_opposite_direction_spec.rb