Sha256: 9595ed42d019f43f817dc7642ed0524bdae641b1edbda75d754be80ba172e449

Contents?: true

Size: 338 Bytes

Versions: 1

Compression:

Stored size: 338 Bytes

Contents

require 'helper'
require 'email_domain_validator/dummy'

describe EmailDomainValidator::Dummy do
  let(:core){ double(:core_app) }
  subject{ described_class.new(core) }

  it 'returns true always' do
    core.should_not_receive(:valid?)

    subject.valid?('localhost').should == true
    subject.valid?('test').should == true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
email_domain_validator-0.0.1 spec/email_domain_validator/dummy_spec.rb