An open API service indexing awesome lists of open source software.

https://github.com/radiantnode/rspec-flamingo

A custom RSpec formatter that just outputs 🦩 for everything. This is made from an inside joke and should not be used in any sane workplace.
https://github.com/radiantnode/rspec-flamingo

Last synced: 4 months ago
JSON representation

A custom RSpec formatter that just outputs 🦩 for everything. This is made from an inside joke and should not be used in any sane workplace.

Awesome Lists containing this project

README

          

# rspec-flamingo

![](https://msimmons.s3.amazonaws.com/github/rspec-flamingo/rspec-flamingo.gif)

A custom RSpec formatter that just outputs 🦩 for everything. This is made from an inside joke and should not be used in any sane workplace.

### Install the gem

```
git clone https://github.com/radiantnode/rspec-flamingo.git
cd rspec-flamingo
gem build rspec-flamingo.gemspec
gem install rspec-flamingo-*.gem
```

### Enabling the flamingo 🦩

You can invoke the flamingo with the `--format` option when calling rspec:

```
rspec --require rspec-flamingo --format RSpecFlamingo::Formatter
```

Or if you are brave enable it in your `.rspec` file:

```
--require rspec-flamingo
--format RSpecFlamingo::Formatter
```

Now you have the flamingo! 🦩 🎉

```
rspec
🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩🦩
```

### Configuration

You can customize the emoji and summary output by defining a configuration block in your `spec_helper.rb`.

```ruby
RSpecFlamingo.configure do |config|
config.example_passed_emoji = '🎉'
config.example_failed_emoji = '🐊'
config.example_pending_emoji = '👷'
config.hide_summary = true # Hide default RSpec progress formatter summary
config.hide_failures = true # Hide default RSpec progress formatter failures
end
```