Sha256: 1b0daae9119c3c1ec564c52f6c4a0674eb645d64c1c7f02fd4f073d5af80c93c
Contents?: true
Size: 746 Bytes
Versions: 3
Compression:
Stored size: 746 Bytes
Contents
require 'spec_helper' RSpec.describe ThinkingSphinx::Commands::Configure do let(:command) { ThinkingSphinx::Commands::Configure.new( configuration, {}, stream ) } let(:configuration) { double 'configuration' } let(:stream) { double :puts => nil } before :each do allow(configuration).to receive_messages( :configuration_file => '/path/to/foo.conf', :render_to_file => true ) end it "renders the configuration to a file" do expect(configuration).to receive(:render_to_file) command.call end it "prints a message stating the file is being generated" do expect(stream).to receive(:puts). with('Generating configuration to /path/to/foo.conf') command.call end end
Version data entries
3 entries across 3 versions & 1 rubygems