unixoid-challenge 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5038cc84438774fae53de4387e330a9e64d270ce
4
- data.tar.gz: fa0119d7de7fdc648d815ae4257ad3dcdf06044e
3
+ metadata.gz: 821f642f54aed4725d643e4092c853a9b1b51271
4
+ data.tar.gz: 734ade33d5ec3a3fb48b5fc1fdd1873848c11f3f
5
5
  SHA512:
6
- metadata.gz: cc96abda146b37a2f8531ca7dea4079e7020797856f845882eed274f66c5a1d0e9422cbb82119c4b3ddd1da784a82ebbb2e9b62849c68e21cb13fdce8ee6ea55
7
- data.tar.gz: ea38f444c2232ddd1acbdc50e0c319d9c439e1e64b0f1fa3b4ab2d7c08d1b7512b49e39aa160f3fc8177221e9503b1baf7f20ccfbf36a102e9a39ad68692199f
6
+ metadata.gz: 14964894b315d387d5a3407c2082a77c3ccdcdb9979d215f99eb7bcea90a85b50bc259e0bd7ca9325a676cc861a566fe41c0a0d485bddaea950eb129032d938d
7
+ data.tar.gz: bf6c3eb087b32b03029278d08c23117df98ed9bbf28b7b05bb153f61880d4ad016c3f0f5ffe98de5055a968ac82580dd59dfe9f8bdaf5119ae6646cd1e4aa613
data/challenge_spec.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require 'cocaine'
2
+
1
3
  describe "Unixoid test" do
2
4
 
3
5
  it "1. should have a my/private/files directory" do
@@ -61,8 +63,9 @@ describe "Unixoid test" do
61
63
  end
62
64
 
63
65
  it "13. should have the the first three env vars in my/private/files/first-three-env.txt" do
64
- lines = File.readlines('my/private/files/first-three-env.txt')
65
- expect(lines.sort).to eq lines
66
+ lines = File.readlines('my/private/files/first-three-env.txt').map(&:chomp)
67
+ command = Cocaine::CommandLine.new("echo \"#{lines.join("\n")}\" | sort", "", expected_outcodes: [0, 2], swallow_stderr: true).run.sub(/^\n+/, "").split("\n")
68
+ expect(command).to eq lines
66
69
  expect(lines.count).to eq(3)
67
70
  end
68
71
 
@@ -1,5 +1,5 @@
1
1
  # coding: UTF-8
2
2
 
3
3
  module Unixoid
4
- VERSION = "0.1.0".freeze
4
+ VERSION = "0.1.1".freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unixoid-challenge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Joseph