pipeable 0.0.1 → 0.1.0

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.
@@ -1,3 +0,0 @@
1
- module Pipeable
2
- VERSION = "0.0.1"
3
- end
@@ -1,27 +0,0 @@
1
- require 'spec_helper'
2
- require 'ostruct'
3
-
4
- # Monkey Patch it in
5
- class Object
6
- include Pipeable
7
- end
8
-
9
- describe 'Pipeable' do
10
- context 'When used with an Integer' do
11
- it 'returns 100 when piped multiple times' do
12
- value = 1.pipe { |v| v * 10 }.pipe { |v| v * 10 }
13
-
14
- expect(value).to eq(100)
15
- end
16
- end
17
-
18
- context 'When used with a Person' do
19
- let(:person) { OpenStruct.new(name: 'brandon', foo: true, bar: true, baz: true)}
20
-
21
- it 'returns true with conditionals' do
22
- value = person.pipe { |me| me.foo && me.bar && me.baz }
23
-
24
- expect(value).to be_true
25
- end
26
- end
27
- end
data/spec/spec_helper.rb DELETED
@@ -1,11 +0,0 @@
1
- require 'rubygems'
2
- require 'bundler/setup'
3
-
4
- require 'pipeable'
5
-
6
- require 'coveralls'
7
- Coveralls.wear!
8
-
9
- RSpec.configure do |config|
10
- # some (optional) config here
11
- end