string_to_editor 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/string_to_editor.rb +1 -1
- data/spec/string_to_editor_spec.rb +3 -3
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/lib/string_to_editor.rb
CHANGED
@@ -47,14 +47,14 @@ describe "StringToEditor" do
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
|
-
describe "
|
50
|
+
describe "view" do
|
51
51
|
describe "if no editor command is specified in ENV['EDITOR']" do
|
52
52
|
before do
|
53
53
|
ENV.delete('EDITOR')
|
54
54
|
end
|
55
55
|
|
56
56
|
it "should raise an error" do
|
57
|
-
lambda { "breakfast".
|
57
|
+
lambda { "breakfast".view }.should raise_error
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
@@ -66,7 +66,7 @@ describe "StringToEditor" do
|
|
66
66
|
it "should send a string to the edit command in the background" do
|
67
67
|
s = "sausage"
|
68
68
|
s.should_receive(:system).with('/bin/editor/command /path/to/temp_file &')
|
69
|
-
s.
|
69
|
+
s.view
|
70
70
|
end
|
71
71
|
end
|
72
72
|
end
|