add require
fix conditional branch
add specs
remove rspec option