Skip to content

Commit bdb99c4

Browse files
committed
Factor MyIO to its own file
1 parent f7328ec commit bdb99c4

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

spec/aws_rotate_keys_spec.rb

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
require "spec_helper"
2+
require "myio"
23

34
describe AwsRotateKeys do
45
class IAMDouble
@@ -96,17 +97,3 @@ def rotate_keys(args = {})
9697
end
9798
end
9899
end
99-
100-
class MyIO
101-
def initialize
102-
@content = ""
103-
end
104-
105-
def puts(msg)
106-
@content << msg + "\n"
107-
end
108-
109-
def to_s
110-
@content
111-
end
112-
end

spec/myio.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class MyIO
2+
def initialize
3+
@content = ""
4+
end
5+
6+
def puts(msg)
7+
@content << msg + "\n"
8+
end
9+
10+
def to_s
11+
@content
12+
end
13+
end

0 commit comments

Comments
 (0)