Sha256: 40e6a3d96422a00b6f4e1b7323db227e1204173a84c3b13ad33191daaf1ae50d

Contents?: true

Size: 855 Bytes

Versions: 5

Compression:

Stored size: 855 Bytes

Contents

Feature: Configurable Services

  As a Chatterbox user
  I want to be able to configure only the services I need
  So that I can avoid unnecessary dependecies

  Scenario: No services loaded
  Given a file named "no_services_loaded.rb" with:
    """
    require "chatterbox"
    require "spec"
    require "spec/expectations"
    Chatterbox::Services.constants.should == []
    """
  When I run "no_services_loaded.rb"
  Then the exit code should be 0

  Scenario: Email service only
  Given a file named "email_service_only.rb" with:
    """
    require "chatterbox"
    require "chatterbox/services/email"
    require "spec"
    require "spec/expectations"
    Chatterbox::Services.constants.size.should == 1
    Chatterbox::Services.constants.first.to_sym.should == :Email
    """
  When I run "email_service_only.rb"
  Then the exit code should be 0

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
chatterbox-0.8.5 features/services.feature
chatterbox-0.8.4 features/services.feature
chatterbox-0.8.3 features/services.feature
chatterbox-0.8.2 features/services.feature
chatterbox-0.8.1 features/services.feature