Skip to content

Commit

Permalink
added rails/all requirement to spec_helper, because rspec wouldn't ru…
Browse files Browse the repository at this point in the history
…n without it
  • Loading branch information
KimNorgaard committed Jan 12, 2015
1 parent dda9aae commit 275f8b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/validates_hostname.rb
Expand Up @@ -92,7 +92,8 @@ def initialize(options)
:require_valid_tld => false,
:valid_tlds => ALLOWED_TLDS,
:allow_numeric_hostname => false,
:allow_wildcard_hostname => false
:allow_wildcard_hostname => false,
:allow_root_label => false
}.merge(options)
super(opts)
end
Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
@@ -1,4 +1,5 @@
require 'active_record'
require "rails/all"
require 'rspec/rails'

require 'validates_hostname'
Expand Down

0 comments on commit 275f8b7

Please sign in to comment.