lector 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/lector/types.rb +2 -0
- data/lib/lector/version.rb +1 -1
- data/spec/lector/reader_spec.rb +3 -3
- metadata +1 -1
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/lib/lector/types.rb
CHANGED
data/lib/lector/version.rb
CHANGED
data/spec/lector/reader_spec.rb
CHANGED
@@ -94,10 +94,10 @@ describe Lector do
|
|
94
94
|
end
|
95
95
|
|
96
96
|
context 'read-evaling' do
|
97
|
-
it "
|
98
|
-
Lector::read_s("#='1+2'").should ==
|
97
|
+
it "returns the code when read-eval is off" do
|
98
|
+
Lector::read_s("#='1+2'").should == '1+2'
|
99
99
|
end
|
100
|
-
it "
|
100
|
+
it "evals the code when read-eval is on" do
|
101
101
|
Lector::read_s("#='1+2'", :read_eval => true).should == 3
|
102
102
|
end
|
103
103
|
|