This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# recursively places features into groups in turn | |
class CucumberSlicer | |
def initialize(slices:) | |
@slices = slices | |
end | |
def slice | |
feature_files = Dir.glob("features/**/*.feature") | |
sorted_features = feature_files.map { |filepath| [filepath, scenario_count(filepath)] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# spec.cr | |
require "spectator" | |
require "./spec_helper" | |
Spectator.describe OrderCalculator do | |
inject_mock Database | |
def_mock(Product) | |
it "multiplies the product price by given quantity" do | |
product = new_mock(Product) |