tryrb 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tryrb/cli.rb +1 -1
- data/lib/tryrb/version.rb +1 -1
- data/spec/cli_spec.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7252d4539cd37e1802b97cef43868e1c2c4ec3d
|
4
|
+
data.tar.gz: 86c19f2d675deb2b3b29f0edcaf5815a143286ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b19eb84f36fd761916f048f60e75a3a5e6e971475db75b17919226e5a63e54b36e795f3615d6420ef77a4a4d16df76c2292c3042399dbd123540b7da0a5cba16
|
7
|
+
data.tar.gz: 3f7dcfd287acd5b637498b0a97b488588dbe1e5768852d404ff8c61ef303e7112d997378bbcde8837651226bb5a88988531610bc17abe2ee50a052353a2a1dce
|
data/lib/tryrb/cli.rb
CHANGED
data/lib/tryrb/version.rb
CHANGED
data/spec/cli_spec.rb
CHANGED
@@ -7,13 +7,13 @@ describe TryRb::CLI do
|
|
7
7
|
describe '::start' do
|
8
8
|
it "should call system method with an editor" do
|
9
9
|
TryRb::Config.instance.path = fixture_file_path('tryrbrc')
|
10
|
-
expect(TryRb::CLI).to receive(:system).with('emacs
|
10
|
+
expect(TryRb::CLI).to receive(:system).with('emacs ~/tmp/foo/tryrb/20140101000000_filename.rb')
|
11
11
|
TryRb::CLI.start(["filename"])
|
12
12
|
end
|
13
13
|
|
14
14
|
it "should call system method with right filepath and default editor" do
|
15
15
|
TryRb::Config.instance.path = fixture_file_path('foorc')
|
16
|
-
expect(TryRb::CLI).to receive(:system).with('mvim
|
16
|
+
expect(TryRb::CLI).to receive(:system).with('mvim ~/tmp/tryrb/20140101000000_filename.rb')
|
17
17
|
TryRb::CLI.start(["filename"])
|
18
18
|
end
|
19
19
|
end
|