spec/parsed_method_spec.rb in fukuzatsu-1.0.4 vs spec/parsed_method_spec.rb in fukuzatsu-1.0.5
- old
+ new
@@ -20,14 +20,14 @@
end
end
describe "#prefix" do
it "returns '.' if its type is class" do
- allow(parsed_method).to receive("type") { "class" }
+ allow(parsed_method).to receive("type") { :class }
expect(parsed_method.prefix).to eq "."
end
it "returns '#' if its type is instance" do
- allow(parsed_method).to receive("type") { "instance" }
+ allow(parsed_method).to receive("type") { :instance }
expect(parsed_method.prefix).to eq "#"
end
end
end
\ No newline at end of file