spec/container_spec.rb in watir-webdriver-0.7.0 vs spec/container_spec.rb in watir-webdriver-0.8.0
- old
+ new
@@ -9,14 +9,14 @@
extract_selector(*args)
end
end
it "converts 2-arg selector into a hash" do
- expect(@container.public_extract_selector([:how, 'what'])).to eq Hash[:how => 'what']
+ expect(@container.public_extract_selector([:how, 'what'])).to eq Hash[how: 'what']
end
it "returns the hash given" do
- expect(@container.public_extract_selector([:how => "what"])).to eq Hash[:how => "what"]
+ expect(@container.public_extract_selector([how: "what"])).to eq Hash[how: "what"]
end
it "returns an empty hash if given no args" do
expect(@container.public_extract_selector([])).to eq Hash[]
end