summaryrefslogtreecommitdiff
path: root/spec/rubyspec/core/struct/to_h_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rubyspec/core/struct/to_h_spec.rb')
-rw-r--r--spec/rubyspec/core/struct/to_h_spec.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/spec/rubyspec/core/struct/to_h_spec.rb b/spec/rubyspec/core/struct/to_h_spec.rb
deleted file mode 100644
index 6b8037f950..0000000000
--- a/spec/rubyspec/core/struct/to_h_spec.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/classes', __FILE__)
-
-describe "Struct#to_h" do
- it "returns a Hash with members as keys" do
- car = StructClasses::Car.new('Ford', 'Ranger')
- car.to_h.should == {make: "Ford", model: "Ranger", year: nil}
- end
-
- it "returns a Hash that is independent from the struct" do
- car = StructClasses::Car.new('Ford', 'Ranger')
- car.to_h[:make] = 'Suzuki'
- car.make.should == 'Ford'
- end
-end