marmot 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/marmot/options_sanitizer.rb +1 -1
- data/lib/marmot/version.rb +1 -1
- data/spec/options_sanitizer_spec.rb +15 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 228f38b8858271aa4a229d71b3fbacc753419c5d
|
4
|
+
data.tar.gz: 1872cd0700969adbbf3a8300d67faba615a59dd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ea52f31499bed84da982e75457719e4054e82576fbf2586eddaefb65921e0a115c01e854a3c5b12b49601187157c6cd6931cf70eeebc25eb0a98a17d45c340c
|
7
|
+
data.tar.gz: b4cdf3fd93d01dac5c6f88a0e1714302ed1162b3df7023d4e5ae863a069cbdb7bd6dda9657475e81df252a93dd03c71fbf40792d749f2a412cca80cb9438f8bb
|
data/lib/marmot/version.rb
CHANGED
@@ -46,6 +46,21 @@ describe Marmot::OptionsSanitizer do
|
|
46
46
|
})
|
47
47
|
end
|
48
48
|
|
49
|
+
|
50
|
+
it "returns options 2" do
|
51
|
+
opts = Marmot::OptionsSanitizer.sanitize({
|
52
|
+
:formats => ["woff","ttf"],
|
53
|
+
:add_hyphens => false,
|
54
|
+
:webonly => true,
|
55
|
+
:mode => "basic"
|
56
|
+
})
|
57
|
+
opts.should include({
|
58
|
+
:formats => ["woff","ttf"],
|
59
|
+
:webonly => "Y",
|
60
|
+
:mode => "basic"
|
61
|
+
})
|
62
|
+
end
|
63
|
+
|
49
64
|
it "doesn't accept incorrect options" do
|
50
65
|
opts = Marmot::OptionsSanitizer.sanitize(params = {
|
51
66
|
:agreement => "N",
|