Sha256: f5b3542af0e86df4ce8d35959eeb6d2bfe3075b05372cf6d374ca6b7d7bba9aa

Contents?: true

Size: 373 Bytes

Versions: 2

Compression:

Stored size: 373 Bytes

Contents

require "rspec"

require_relative '../lib/enat'

class DummyClass
  include Enat
end

describe DummyClass do
  it { should respond_to(:every).with(1).argument }

  context "when supplied interval is zero" do
    it "should raise error" do
      expect {
        subject.every("foo") { }
      }.to raise_error(Enat::EnatError, "Interval must be non-zero")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
enat-0.1.1 spec/enat_spec.rb
enat-0.1.0 spec/enat_spec.rb