summaryrefslogtreecommitdiff
path: root/spec/unit/resource/route_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/resource/route_spec.rb')
-rw-r--r--spec/unit/resource/route_spec.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/unit/resource/route_spec.rb b/spec/unit/resource/route_spec.rb
index d4248755b5..dd79d04024 100644
--- a/spec/unit/resource/route_spec.rb
+++ b/spec/unit/resource/route_spec.rb
@@ -56,8 +56,13 @@ describe Chef::Resource::Route do
expect(resource.device).to eql("eth0")
end
- it "allows you to specify the route type" do
- resource.route_type "host"
+ it "allows you to specify the route type as a symbol" do
+ resource.route_type :host
+ expect(resource.route_type).to eql(:host)
+ end
+
+ it "allows you to specify the route type as a string" do
+ resource.route_type :host
expect(resource.route_type).to eql(:host)
end