Sha256: 3164b8e51b447417d6c3ecd28d84970a5372e0189f334d7ae8f4718c1ddcd44f

Contents?: true

Size: 428 Bytes

Versions: 1

Compression:

Stored size: 428 Bytes

Contents

require "spec_helper"

require "NATO/refined"

module NATO
  RSpec.describe Refined do
    context "without refining" do
      Then do
        expect { "".to_nato }
          .to raise_error NoMethodError
      end
    end
  end

  module Test
    using Refined

    RSpec.describe Refined do
      context "refining" do
        Then do
          expect { "".to_nato }.to_not raise_error
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
NATO-0.1.0 spec/refined_spec.rb