Skip to content

sagmor/mruby-spec

Repository files navigation

MRuby Spec

Travis Inline docs

MRuby Spec (or MSpec) is a Behaviour Driven Development framework for MRuby inspired in RSpec.

Usage

Add mruby-spec as a dependency on your MRuby's build_config.rb

MRuby::Build.new('test') do |conf|

  # Your build configuration

  conf.gem github: 'sagmor/mruby-spec'
  conf.enable_test
end

Write your tests using BDD syntaxt

describe YourClass do
  it "does something" do
    expect(false).to be true
  end
end

And watch it fail

# If you are using mruby-cli
bundle exec mrb test

# or if you are on MRuby's directory
./minirake test

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/sagmor/mruby-spec/issues. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

About

WIP - Behaviour Driven Development for MRuby.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages