Sha256: 4b85612aded0ba4e759e637615ad24b70fa94b2b5882de12c39d698eea854fef
Contents?: true
Size: 632 Bytes
Versions: 13
Compression:
Stored size: 632 Bytes
Contents
require_relative "./spec_helper.rb" describe "Does it work?" do before do @abc = 1 mocks1_templates = [["/lectures/intro/wonders/", "subsection", 0], ["/lectures/intro/wonders/page2/", "page", 1], ["/lectures/intro/wonders/page3/", "page", 2], ["/lectures/intro/wonder2/", "subsection", 1], ["/lectures/intro/wonder2/page22/", "page", 1], ["/lectures/intro/wonder2/page32/", "page", 2]] @citems1 = mocks1_templates.map { |i, t, o| CItem.new(nil, i, t, o) } @sect = Lectures.new "intro", @citems1 end it "correctly counts subsections" do expect (@abc).to eq 1 end end
Version data entries
13 entries across 13 versions & 1 rubygems