spec/utils_spec.rb in softcover-0.9.5 vs spec/utils_spec.rb in softcover-0.9.6
- old
+ new
@@ -1,12 +1,10 @@
require 'spec_helper'
describe Softcover::Utils do
- context "book_txt_lines" do
- before do
- Softcover::Utils.stub(:raw_lines).and_return(['foo.md', '# bar.tex'])
- end
- subject { Softcover::Utils.book_txt_lines }
+ context "book_file_lines" do
+ let(:raw_lines) { ['foo.md', '# bar.tex'] }
+ subject { Softcover::Utils.non_comment_lines(raw_lines) }
it { should include 'foo.md' }
it { should_not include 'bar.tex' }
end
end
\ No newline at end of file