Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

diogosantos/JSpec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What would it be if RSpec were originally written in Java?

I think that would be like this...

Given I have a class called User and I want to write its specification in Java, so I write:

describe( User.class );
add( new Spec( "it should have a name" ) {
	public void doIt() {
		User user = new User();
		user.name = "Diogo";

		should( user.name.equals( "Diogo" ) );
	}
} );

The code above should produce something like this: 

User specifications:
	it should have a name... ok!	

About

A dead-simple rspec-like for Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages