spec/printing_spec.rb in command_kit-0.1.0.rc1 vs spec/printing_spec.rb in command_kit-0.1.0
- old
+ new
@@ -1,25 +1,33 @@
require 'spec_helper'
require 'command_kit/printing'
require 'stringio'
-describe Printing do
+describe CommandKit::Printing do
module TestPrinting
class TestCmd
include CommandKit::Printing
end
end
let(:command_class) { TestPrinting::TestCmd }
subject { command_class.new }
+
+ describe "EOL" do
+ subject { described_class::EOL }
+ it "must equal $/" do
+ expect(subject).to eq($/)
+ end
+ end
+
describe ".included" do
subject { command_class }
- it { expect(command_class).to include(Stdio) }
+ it { expect(command_class).to include(CommandKit::Stdio) }
end
let(:nl) { $/ }
describe "#print_error" do