Sha256: b84add00242f3184056902e99a0279972ffb722d7b5229c14bff4c9a86bfd48c
Contents?: true
Size: 972 Bytes
Versions: 1
Compression:
Stored size: 972 Bytes
Contents
require 'helper' class TestSimpleSite < Test::Unit::TestCase should "have empty buckets on init" do s = SimpleSite.new assert_equal [], s.options[:buckets] end should "have one bucket" do s = SimpleSite.new(:bucket => 'www.myawesomesite.com') assert_equal ['www.myawesomesite.com'], s.options[:buckets] end should "have two buckets" do s = SimpleSite.new(:buckets => %w(www.myawesomesite.com www.myotherdomain.com)) assert_equal ['www.myawesomesite.com', 'www.myotherdomain.com'], s.options[:buckets] end should "have empty list of js files" do s = SimpleSite.new assert_equal [], s.options[:js_files] end should "have one js file" do s = SimpleSite.new(:js_files => %w(site.js)) assert_equal ['site.js'], s.options[:js_files] end should "have two js files" do s = SimpleSite.new(:js_files => %w(site.js lib.js)) assert_equal ['site.js', 'lib.js'], s.options[:js_files] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_site-0.0.2 | test/test_simple_site.rb |