Sha256: 23fb2c2979a899160a6d9b85a87e5b48818a9588ae45f60d3424a6ad4bf437c8
Contents?: true
Size: 859 Bytes
Versions: 4
Compression:
Stored size: 859 Bytes
Contents
describe SlackRubyBot::Commands::Help::Attrs do let(:help_attrs) { described_class.new('WeatherBot') } it 'captures commands help attributes' do expect(help_attrs.commands).to be_empty sample_title = 'how\'s the weather?' sample_desc = 'Tells you the weather in a <city>.' sample_long_desc = "Accurate 10 Day Weather Forecasts for thousands of places around the World.\n" \ 'We provide detailed Weather Forecasts over a 10 day period updated four times a day.' help_attrs.command(sample_title) do desc sample_desc long_desc sample_long_desc end expect(help_attrs.commands.count).to eq(1) command = help_attrs.commands.first expect(command.command_name).to eq(sample_title) expect(command.command_desc).to eq(sample_desc) expect(command.command_long_desc).to eq(sample_long_desc) end end
Version data entries
4 entries across 4 versions & 1 rubygems