Skip to content

Instantly share code, notes, and snippets.

@sjahandideh
sjahandideh / server-client
Created February 9, 2016 01:20
sample elixir server client
defmodule Server do
def start(callback_module) do
spawn fn ->
callback_module |> run
end
end
def run(callback_module) do
receive do
message ->
@sjahandideh
sjahandideh / How to demo feature specs.md
Last active December 28, 2015 01:49
How to demo your feature specs

In order to demo your feature specs, follow these steps:

  1. Add capybara, poltergeist, launchy and selenium-webdriver to your Gemfile under test and development group.
  2. Add the attached demo helper to your spec/support.
  3. Add the capybara config to your spec_helper file.
  4. Run bundle install.
  5. Write your feature with its scenario specs.
  6. Put a demo filter on each scenario you want to demo. ( refer to the example below )
  7. Run bundle exec rspec spec.